import Vue from 'vue';
import App from './App';

// 加载 http.js 
import '@/utils/http.js';
// 导入 store
import store from './store/store';

Vue.config.productionTip = false;
App.mpType = 'app';

uni.$showToast = function(title = '数据加载失败!') {
	uni.showToast({
		title,
		icon: 'none'
	})
}


const app = new Vue({
	...App,
	// 注入 store
	store
});
app.$mount();
